import * as TYPES from "../actionType.js"

// 存放数据
let initState = {
    message: null,
}

function login(state = initState, action) {
    state = JSON.parse(JSON.stringify(state))
    let { type, payload } = action
    switch (type) {
        case TYPES.DENF_LOGIN:
            state.message = payload
            console.log(state.message, 'reducers到位');
            console.log(state.message);
            break;
    }
    return state
}

export default login